import request from '@/utils/request';

/*

Author: factoryOpen
Date: 2025-06-01
Version: 1.0.0-draft.0
Web URL: www.factoryopen.net

*/


// 查询客户地址列表
export function listCustomerAddress(query) {
    return request({
        url: '/cha/customerAddress/list',
        method: 'get',
        params: query
    })
}

// 查询客户地址详细
export function getCustomerAddress(id) {
    return request({
        url: '/cha/customerAddress/' + id,
        method: 'get'
    })
}

// 新增客户地址
export function addCustomerAddress(data) {
    return request({
        url: '/cha/customerAddress',
        method: 'post',
        data: data
    })
}

// 修改客户地址
export function updateCustomerAddress(data) {
    return request({
        url: '/cha/customerAddress',
        method: 'put',
        data: data
    })
}

// 删除客户地址
export function delCustomerAddress(id) {
    return request({
        url: '/cha/customerAddress/' + id,
        method: 'delete'
    })
}



